/*
 *MIT License
 *
 *Copyright (c) 2019 chenshuai cs4380@163.com
 *
 *Permission is hereby granted, free of charge, to any person obtaining a copy
 *of this software and associated documentation files (the "Software"), to deal
 *in the Software without restriction, including without limitation the rights
 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *copies of the Software, and to permit persons to whom the Software is
 *furnished to do so, subject to the following conditions:
 *
 *The above copyright notice and this permission notice shall be included in all
 *copies or substantial portions of the Software.
 *
 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *SOFTWARE.
 */

package com.cs.cslc.common.enums;

import lombok.Getter;

/**
 * AuthenticationEnums 认证状态码.
 *
 * @author cs
 * @version 1.0
 * @date 2019-10-30 14:49
 * @description
 */
@Getter
public enum AuthenticationEnums {
    /**
     * 用户授权过期或者其他端已登出，请重新登陆！
     */
    AUTH_FAIL(401000, "访问权限异常，请联系管理员！"),
    EXPIRED_TOKEN(401001, "用户授权过期或者其他端已登出，请重新登陆！"),
    UNKNOWN_ACCOUNT(401002, "用户账号或密码错误！"),
    DISABLED_ACCOUNT(401003, "用户账号已禁用，请联系管理员！");

    /**
     * 编码
     */
    private int code;
    /**
     * 提示信息
     */
    private String value;

    AuthenticationEnums(int code, String value) {
        this.code = code;
        this.value = value;
    }
}